package com.cloudfun.campusshare.common.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by Huqin on 2020/3/9
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "批量操作DTO")
public class BatchOperateDTO<T> {

    @ApiModelProperty("数据id集合")
    private List<String> ids;

    @ApiModelProperty("所有数据")
    private Boolean all;

    @ApiModelProperty("条件筛选数据")
    private T searchData;
}
